package com.spring.demo.repository.mongodb;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.spring.demo.domain.mongodb.History;

@Repository
@Transactional(readOnly = true)
public class HistoryCRUDImpl implements HistoryCRUD {

	@Autowired
	private MongoOperations mongoOperations;
	
	public void insertHistory(History history) {
		mongoOperations.insert(history);
	}
}
